package com.sixmac.dao;

import com.sixmac.entity.Account;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2016/5/19 0019 上午 10:01.
 */
public interface AccountDao extends JpaRepository<Account, Integer>, JpaSpecificationExecutor<Account> {

    @Query("select a from Account a where a.createTime > ?1")
    public List<Account> findListNew(Date oldDate);
}